package day10;

import java.util.Scanner;

public class Ques1710 {

	int n,m;
	boolean flag;
	int[] array;
	
	public void dfs(int i,int sum){
		if(sum  % m == 0 && i == n){
			flag = true;
			return;
		}
		if(flag || i > n){
			return;
		}
		this.dfs(i+1,(sum+array[i])%m);
		this.dfs(i+1,(sum-array[i])%m);
	}
	
	public void go(){
		Scanner scan = new Scanner(System.in);
		while(scan.hasNext()){
			n = scan.nextInt();
			m = scan.nextInt();
			array = new int[n+1];
			for(int i = 0;i < n;i ++){
				array[i] = scan.nextInt();
			}
			flag = false;
			this.dfs(0,0);
			if(flag){
				System.out.println("Yes");
			}else{
				System.out.println("No");
			}
		}
	}
	
	public static void main(String[] args) {
		new Ques1710().go();
	}
}
